<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店点评审核</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>

<script type="text/javascript">

function editRReview(){
	var iframe = $(this.iframe).contents();	 
	//iframe.find("#editsubmit").click();
	return true;
}
</script>
</head>
<body>
<div id="main_frame">	
	<form id="form" method="post" action="">
	<div id="pagemenu">
		<a href="getHotelReviewListByPage.action?hotelId=${hotelId}" title="路线点评">点评列表</a>
		|<a href="javascript:void();" title="审核"  class="selected">审核</a>
	</div>
	<div class="listbox">	
	<table class="listtab"  align="center">
		<thead>
			<tr>
				<th width="42"><span class="mline"><input type="checkbox" name="checkbox" id="checkbox" onclick="selectall(this);" /></span></th>
				<th><span class="mline">评论人</span></th>
				<th><span class="mline">点评时间</span></th>
				<th><span class="mline">评论意见</span></th>
				
				<th width="160">管理操作</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="resultlist" var="x">		
			<tr>				
				<td><input type="checkbox" name="checkbox" value="${x.id}" class="ckbox"/></td>
				<td>${x.userName}</td>
				<td>
					<s:date name="#x.entryDate" format="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<s:if test="#x.comment==1">
					<font color="green">好评</font>
					</s:if>
					<s:elseif test="#x.comment==2">
					<font color="#EE7942">中评</font>
					</s:elseif>
					<s:else>
					<font color="red">差评</font>
					</s:else>
				</td>
				
				<td>	
					<a href="javascript:void(0);" onclick="parent.mnipotent({'linkurl':'panel/hotel/review/findById.action?id=${x.id}','title':'查看点评','w':580,'h':330,'sucfun':editRReview});" title="查看点评" class="abg">详情</a>
					<a href="ispass.action?ids=${x.id}" title="审核" class="abg" onclick="return ispass_confirm();">审核</a>
					<a href="delete.action?ids=${x.id}" onclick="return delete_confirm();" title="删除" class="abg">删除</a>
				</td>
			</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
	</form>
</div>
<div id="bottombar">
	<div class="fl">
	<span>
		<a onclick="selectall(true);" href="javascript:void(0);">全选</a>/<a onclick="selectall(false);" href="javascript:void(0);">取消</a></span>
		<a href="javascript:void(0);" onclick="ispass('ispass.action');"  title="审核" class="addsource">审核</a>
		<a href="javascript:void(0);" onclick="remove('delete.action');" title="删除" class="addsource">删除</a>
	</div>
	<div class="fr listpage">${pagination}</div>
</div>
</body>
</html>